<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<link href="<?php echo $this->baseUrl;?>/admincss/style.css" rel="stylesheet" type="text/css" />
<script charset="utf-8" src="<?php echo $this->baseUrl;?>/adminjs/jquery.pack.js"></script>
<script language="javascript">
$(function (){
	$('._list').bind("mouseover", function (){
		$(this).addClass("trover");
	}).bind("mouseleave", function (){
		$(this).removeClass("trover");
	});
});
</script>
<body>
<table width="100%" border="1" class="tableA">
  <tr>
    <td width="5%" nowrap>位置</td>
    <td nowrap>图片</td>
    <td nowrap>链接</td>
    <td nowrap>点击数</td>
    <td nowrap>最后修改时间</td>
    <td nowrap>操作</td>
  </tr>
<?php
foreach ($this->list as $v){
$editurl = $this->url($this->fullUrl, 'ad', 'edit','id='.$v['id'] . '&nowp=' . $this->nowp);
$delurl=$this->url($this->fullUrl, 'ad', 'del', 'id='.$v['id'] . '&nowp=' . $this->nowp);
$pubtime = date("Y-m-d H:i:s", $v['pubtime']);
$img = '<a href="' . $this->baseUrl . $v['image'] . '" target=_blank><img border=0 height=50 width=50 src="' . $this->baseUrl . $v['image'] . '"></a>';

print <<<EOT
  <tr class="_list">
    <td width="5%" nowrap>{$v['id']}</td>
    <td nowrap>{$img}</td>
    <td nowrap>{$v['url']}</td>
    <td nowrap>{$v['hits']}</td>
    <td nowrap>{$pubtime}</td>
    <td nowrap><a href="{$editurl}">编辑</a></td>
  </tr>
EOT;
}
?>
</table>
</body>
</html>
